<div class="item">
    <div class="title"><?= $this->__('Users online'); ?>: <?= count($this->users); ?><span class="hide">hide</span></div>
    <div class="content">
        <?php if (count($this->users) > 0): ?>
            <?php foreach ($this->users as $user): ?>
                <?php if (!is_null($user['username'])): ?>
                    <a href="/profile/<?= $user['username']; ?>"><?= $user['username']; ?></a><br/>
                <?php else: ?>
                    <?php $this->unreg++; ?>
                <?php endif; ?>
            <?php endforeach; ?>
            <?php if ($this->unreg > 0): ?>        
                <?= $this->__('Not registered'); ?>: <?= $this->unreg; ?><br/>
            <?php endif; ?>
        <?php else: ?>
            - <br/>
        <?php endif; ?>
    </div>
</div>